package test1021;

public class Person {
    protected String name;
    protected String sex;

    public void idea(String name, String sex){
        this.name = name;
        this.sex = sex;
    }
    public void displayInfo(){
        System.out.println("姓名" + name);
        System.out.println("性别" + sex);
    }

}
